<?php if (isset($_SERVER['HTTP_USER_AGENT']) && !strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) echo '<?xml version="1.0" encoding="UTF-8"?>'. "\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" xml:lang="<?php echo $lang; ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title><?php echo $title; ?></title>
<?php if ($keywords) { ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php } ?>
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<base href="<?php echo $base; ?>" />
<?php if ($icon) { ?>
<link href="<?php echo $icon; ?>" rel="icon" />
<?php } ?> 

<script type='text/javascript' src="catalog/view/javascript/jquery/jquery-1.3.2.min.js"></script> 
<script type="text/javascript" src="catalog/view/javascript/jquery/coda-slider.1.1.1.pack.js"></script>
<link rel="stylesheet" href="catalog/view/theme/<?php echo $template; ?>/css/ja_contentslide.css" type="text/css" />
<link rel="stylesheet" href="catalog/view/theme/<?php echo $template; ?>/css/mod_jasidenews.css" type="text/css" />
<link rel="stylesheet" href="catalog/view/theme/<?php echo $template; ?>/css/mod_jaslideshow2.css" type="text/css" />
<link rel="stylesheet" href="catalog/view/theme/<?php echo $template; ?>/css/newsticker.css" type="text/css" />
<link rel="stylesheet" href="catalog/view/theme/<?php echo $template; ?>/css/ja.tabs.css" type="text/css" />
<!--[if IE]>
<link rel="stylesheet" href="catalog/view/theme/<?php echo $template; ?>/css/ie.css" type="text/css" />
<![endif]-->

<!--[if lt IE 7.0]>
<link rel="stylesheet" href="catalog/view/theme/<?php echo $template; ?>/css/ie7minus.css" type="text/css" />
<style>
.main { width: expression(document.body.clientWidth < 770? "770px" : document.body.clientWidth > 1200? "1200px" : "auto"); }
</style>
<![endif]-->

<!--[if IE 7.0]>
<link rel="stylesheet" href="catalog/view/theme/<?php echo $template; ?>/css/ie7.css" type="text/css" />
<style>
.clearfix { display: inline-block; } /* IE7xhtml*/
</style>
<![endif]-->
 <script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/mootools.js"></script>
<script language="javascript" type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/ja.script.js"></script>
<script language="javascript" type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/ja.ddmod.js"></script>
<link href="catalog/view/theme/<?php echo $template; ?>/css/menu/mega.css" rel="stylesheet" type="text/css" />
<link href="catalog/view/theme/<?php echo $template; ?>/css/menu/css.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/menu/mega.js"></script>
<script language="javascript" type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/menu/css.js"></script>
<link rel="stylesheet" href="catalog/view/theme/<?php echo $template; ?>/css/general.css" type="text/css" />
<link rel="stylesheet" href="catalog/view/theme/<?php echo $template; ?>/css/addons.css" type="text/css" />
<link rel="stylesheet" href="catalog/view/theme/<?php echo $template; ?>/css/layout.css" type="text/css" />
<link rel="stylesheet" href="catalog/view/theme/<?php echo $template; ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="catalog/view/theme/<?php echo $template; ?>/css/typo.css" type="text/css" />
<link href="catalog/view/theme/<?php echo $template; ?>/css/colors/light_ocean.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="catalog/view/theme/<?php echo $template; ?>/css/mod_jabulletin.css" type="text/css" />

<!--[if lte IE 6]>
<script type="text/javascript">
window.addEvent ('load', makeTransBG);
function makeTransBG() {
makeTransBg($$('img'));
}
</script>
<![endif]-->
<style type="text/css">
.main {width: 980px;margin: 0 auto;}
#ja-wrapper {min-width: 981px;}

</style>
</head>

<body id="bd" class="fs3 IE6">

<div id="ja-wrapper">
	<a name="Top" id="Top"></a>

	<!-- HEADER -->
	<div id="ja-header" class="wrap">

	<div class="main">
	<div class="inner clearfix">
	  	<?php if ($logo) { ?>
	  		<h1 class="logo">
        	<a href="<?php echo str_replace('&', '&amp;', $home); ?>"><img src="<?php echo $logo; ?>" style="width: 488px; height: 170px;" title="<?php echo $store; ?>" alt="<?php echo $store; ?>" /></a>
        <?php } ?>
	</h1>
		
	<div id="ja-search">
				<label for="mod_search_searchword">Search</label>    
				
		         <?php if ($keyword) { ?>
		            <input class="inputbox" type="text" size="20" type="text" value="<?php echo $keyword; ?>" id="filter_keyword" />
		            <?php } else { ?>
		            <input class="inputbox" type="text" size="20" type="text" value="<?php echo $text_keyword; ?>" id="filter_keyword" onclick="this.value = '';" onkeydown="this.style.color = '#000000'" style="color: #999;" />
		         <?php } ?>
		         <input onclick="moduleSearch();" type="image" src="catalog/view/theme/<?php echo $template; ?>/images/search.png" id="go" alt="Search" title="Search" style="position:relative;right:-238px;top:-28px"/>
				<div style="margin-top:20px;background: url('images/contact.jpg') no-repeat;width:275px;height:100px;position:relative;top:-30px;">
						<div style="padding-top:60px;padding-left:60px;font-size:20px;"><b><?php echo $telephone;?></b></div>
	
				</div>
	</div>
	
</div>

</div>
</div>
	<!-- //HEADER -->
		<!-- MAIN NAVIGATION -->
<div id="ja-mainnav" class="wrap" style="position: fixed">
<div class="main clearfix">
	<div class="ja-megamenu">
		<ul class="megamenu level0">
			<?php echo $categories;?>
		
		</ul>
</div>			
</div>
</div>
<script type="text/javascript">
	var megamenu = new jaMegaMenuMoo ('ja-mainnav', {
		'bgopacity': 0, 
		'delayHide': 1000, 
		'slide': 1, 
		'fading': 0,
		'direction':'down',
		'action':'mouseover',
		'tips': false,
		'duration': 300,
		'hidestyle': 'fastwhenshow'
	});			
</script>


	<!-- //MAIN NAVIGATION -->
<script type="text/javascript"><!--
jQuery('#basicsearch input').keydown(function(e) {
	if (e.keyCode == 13) {
		moduleSearch();
	}
});

function moduleSearch() {
	url = 'index.php?route=product/search';
	
	var filter_keyword = jQuery('#filter_keyword').attr('value')
	
	if (filter_keyword) {
		url += '&keyword=' + encodeURIComponent(filter_keyword);
	}
	location = url;
}
//--></script>
